package com.xia.demo.demoservera.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiafb
 * @date Create in 2021/7/17
 * description 服务A暴露的feign接口
 * @FeignClient(value = "DemoServerA")哪个服务需要暴露接口就填哪个服务的
 * 名称（配置文件application.yaml中的spring.application.name）
 */
@FeignClient(value = "DemoServerA")
public interface IServiceAFeign {

    @GetMapping(value = "/get/doSomeThing")
    String doSomeThing(@RequestParam(value = "name") String name);
}
